package org.csu.code.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Component
@TableName("orders")
public class Order {
    @TableId(value = "orderid",type = IdType.INPUT)
    private int orderId;
    @TableField(value = "userid")
    private int userId;
    @TableField(value = "farmid")
    private int farmId;
    @TableField(value = "shipAddr1")
    private String shipAddress1;
    @TableField(value = "shipAddr2")
    private String shipAddress2;
    @TableField(value = "shipCity")
    private String shipCity;
    @TableField(value = "shipState")
    private String shipState;
    @TableField(value = "shipZip")
    private int shipZip;
    @TableField(value = "shipCountry")
    private String shipCountry;
    @TableField(value = "billAddr1")
    private String billAddress1;
    @TableField(value = "billAddr2")
    private String billAddress2;
    @TableField(value = "billCity")
    private String billCity;
    @TableField(value = "billState")
    private String billState;
    @TableField(value = "billZip")
    private int billZip;
    @TableField(value = "billCountry")
    private String billCountry;
    private String courier;
    @TableField(value = "totalPrice")
    private BigDecimal totalPrice;
    @TableField(value = "billToFirstName")
    private String billToFirstName;
    @TableField(value = "billToLastName")
    private String billToLastName;
    @TableField(value = "shipToFirstName")
    private String shipToFirstName;
    @TableField(value = "shipToLastName")
    private String shipToLastName;
    @TableField(value = "orderDate")
    private Date orderDate;
    private String location;//到达位置
    private boolean paid;
}
